<template>
  <el-table :data="tableData.list" v-loading="loading" border>
    <el-table-column label="供应商" prop="supplierName" width="100" align="center"/>
    <el-table-column label="产品类型" prop="cateName" width="100" align="center"/>
    <el-table-column label="产品名称" prop="goodsName" min-width="300" align="center"/>
    <el-table-column label="串号" prop="snCode" min-width="150" align="center"/>
    <el-table-column label="销售数量" prop="og_num" width="90" align="center"/>
    <el-table-column label="零售价" prop="x_ls_price" width="100" align="center"/>
    <el-table-column label="会员价" prop="hy_price" width="100" align="center"/>
    <el-table-column label="批发价" prop="pfPrice1" width="100" align="center"/>
    <el-table-column label="进货价" prop="og_cbprice" width="100" align="center"/>
    <el-table-column label="实际售价" prop="og_price" width="100" align="center"/>
    <el-table-column label="优惠价" prop="og_yhprice" width="80" align="center"/>
    <el-table-column label="利润" prop="og_lirun" width="80" align="center"/>
    <el-table-column label="状态" prop="-" width="80" align="center"/>
    <el-table-column label="操作" width="80" align="center" fixed="right">
      <template v-slot="{row}">

      </template>
    </el-table-column>
  </el-table>
</template>

<script lang="ts">
import orderApi from "@/api/order";
import Dic from "@/utils/dic";

export default {
  name: "orderGoodsList",
  props: {
    orderSn: {},
  },
  data() {
    return {
      Dic,
      tableData: {
        list: [],
        total: 0,
      },
      loading: false,
    };
  },
  created() {
    this.loadList();
  },
  methods: {
    loadList() {
      this.loading = true;
      orderApi.orderGoodsList({orderSn: this.orderSn}).then(res => {
        this.loading = false;
        this.tableData = res.data
      })
    },
  }
}
</script>
<style lang="scss" scoped>

</style>